package com.beiding.workordersystem.customer.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/*

    自定义字段模型:

    一个Topic对应多个分组,每个分组下面包含多个字段项

 */
@Setter
@Getter
public class CustomerEntityVo {

    private String id;

    //是否是一个自定义
    private Boolean custom = false;

    //客户名称
    @NotNull
    private String name;

    //公司
    @NotNull
    private String company;

    private String remark;

    //等级  S A B C D
    @NotNull
    @Pattern(regexp = "[SABCD]")
    private String rank;

    @NotNull
    private String phone;

    //微信
    @NotNull
    private String wechat;

}
